import * as THREE from "three";

const SPEED = .1;
export default class Windmill {
  constructor() {
    this.isReady = false;
    this.main = new THREE.Mesh();
    this.rotation = 0;
  }

  add(mesh) {
    this.main = mesh;
    this.isReady = true;
  }

  update() {
    this.rotation += SPEED;
    this.main.rotation.x = this.rotation;
  }
}